export  function formatStatus (status) {
  if (status != null) {
    if (status == 1) return "正常"
    if (status == 2) return "禁用"
  }
  return status
}
export  function formatRole (roleId) {
  if (roleId != null) {
    if (roleId == 1) return "学生"
    if (roleId == 2) return "教师"
    if (roleId == 3) return "管理员"
  }
  return roleId
}
export default {
  formatStatus,
  formatRole,
};
